//
//  SASalesInvoiceDetailModel.h
//  saasRetail
//
//  Created by 黄志刚 on 2021/5/10.
//

#import <Foundation/Foundation.h>
@class SAProductListModel,SASaleSkuListModel,SASalePayListModel;

NS_ASSUME_NONNULL_BEGIN

@interface SASalesInvoiceDetailModel : NSObject

@property (nonatomic, copy) NSString *saleOrderId;
@property (nonatomic, copy) NSString *saleOrderNo;
@property (nonatomic, copy) NSString *memberId;
@property (nonatomic, copy) NSString *memberName;
@property (nonatomic, copy) NSString *memberLevelStr;
@property (nonatomic, copy) NSString *attrName;
@property (nonatomic, copy) NSString *empName;
@property (nonatomic, copy) NSString *empId;
@property (nonatomic, copy) NSString *empType;
@property (nonatomic, copy) NSString *empMobile;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *actualPrice;
@property (nonatomic, copy) NSString *formula;
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, copy) NSString *salesTime;
@property (nonatomic, copy) NSString *afterTotalPoints;
@property (nonatomic, copy) NSString *points;
@property (nonatomic, copy) NSString *count;
@property (nonatomic, copy) NSString *discountPrice;
@property (nonatomic, copy) NSString *discountRate;
@property (nonatomic, copy) NSString *deductPrice;
@property (nonatomic, copy) NSString *shouldPrice;
@property (nonatomic, copy) NSString *afterTotalAmount;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, copy) NSString *cardVoucherPrice;
@property (nonatomic, copy) NSString *remark;
@property (nonatomic, assign) NSInteger merchantId;

@property (nonatomic, strong) NSMutableArray<SAProductListModel *> *productList;
@property (nonatomic, strong) NSMutableArray<SASalePayListModel *> *payList;

@property (nonatomic, assign) BOOL isAllReturn;//前端记录是否整单退货
@property (nonatomic, assign) double returnTotal;//记录已经退货的金额

@end

@interface SAProductListModel : NSObject

@property (nonatomic, copy) NSString *productId;
@property (nonatomic, copy) NSString *productName;
@property (nonatomic, copy) NSString *productCode;
@property (nonatomic, copy) NSString *img;
@property (nonatomic, copy) NSArray *imgList;
@property (nonatomic, strong) NSMutableArray<SASaleSkuListModel *> *skuList;

@property (nonatomic, assign) BOOL isReturn;//前端记录是否可以退货

@end

@interface SASaleSkuListModel : NSObject

@property (nonatomic, copy) NSString *skuId;
@property (nonatomic, copy) NSString *colourId;
@property (nonatomic, copy) NSString *colourName;
@property (nonatomic, copy) NSString *sizeId;
@property (nonatomic, copy) NSString *sizeName;
@property (nonatomic, copy) NSString *count;
@property (nonatomic, copy) NSString *totalPrice;
@property (nonatomic, copy) NSString *discountRate;
@property (nonatomic, copy) NSString *discountPrice;
@property (nonatomic, copy) NSString *skuDiscountPrice;
@property (nonatomic, copy) NSString *skuDeductPrice;
@property (nonatomic, copy) NSString *skuActualPrice;
@property (nonatomic, copy) NSString *returnCount;
@property (nonatomic, copy) NSString *price;
@property (nonatomic, copy) NSString *salesCount;
@property (nonatomic, copy) NSString *profit;
@property (nonatomic, copy) NSString *giveFlag;

@property (nonatomic, copy) NSString *stock;//前端记录输入数量
@property (nonatomic, assign) BOOL isReturn;//前端记录是否可以退货
@property (nonatomic, copy) NSString *productName;//前端退货记录
@property (nonatomic, copy) NSString *productId;//前端退货记录
@property (nonatomic, copy) NSString *img;//前端退货记录

@end

@interface SASalePayListModel : NSObject

@property (nonatomic, copy) NSString *payType;
@property (nonatomic, copy) NSString *payPrice;

@end



NS_ASSUME_NONNULL_END
